Skip to content

fix: tsci push fallback to findBoardFiles when no entrypoint#3213

Open
LittleLemonDrop wants to merge 16 commits into
tscircuit:mainfrom
LittleLemonDrop:fix/push-entrypoint-fallback
Open

fix: tsci push fallback to findBoardFiles when no entrypoint#3213
LittleLemonDrop wants to merge 16 commits into
tscircuit:mainfrom
LittleLemonDrop:fix/push-entrypoint-fallback

Conversation

@LittleLemonDrop
Copy link
Copy Markdown

Matches tsci dev behavior: when getEntrypoint returns null (no
index.circuit.tsx, no mainEntrypoint), fall back to searching for
board files in the project instead of silently continuing with
snippetFilePath=undefined.

Closes #2797

- Re-added hasWarnings tracking in build-file.ts, register.ts, exit-build.ts
- Fixed exit code logic: 0=success, 1=errors, 2=warnings-only
- Reverted test changes for boards that produce no diagnostics
- build-ignore-drc-categories.test.ts correctly expects exit code 1
Matches tsci dev behavior: when getEntrypoint returns null (no
index.circuit.tsx, no mainEntrypoint), fall back to searching for
board files in the project instead of silently returning undefined.

Closes tscircuit#2797
@LittleLemonDrop LittleLemonDrop force-pushed the fix/push-entrypoint-fallback branch from e4efb9e to 5e96e10 Compare June 4, 2026 18:07
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 7, 2026

This PR has been automatically marked as stale because it has had no recent activity. It will be closed if no further activity occurs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

tsci push fails when no index.circuit.tsx file and no mainEntrypoint

1 participant